#!/usr/bin/python3
#!coding=utf-8
#nohup python3 -u /inspur/kx/prodStart.py  > /inspur/kx/logs/prodStart.`date '+%Y-%m-%d %H:%M:%S'`.log 2>&1 &
#nohup python3 -u /inspur/kx/prodStart.py  > /inspur/kx/logs/prodStart.log 2>&1 &

import os
import sys
import time
#import thread

startTime = time.time()

os.system("spark-submit --executor-cores 4 --num-executors 40 --driver-memory 10G --executor-memory 20G --py-files /inspur/kx/ods_yscjq/ds_conf.py,/inspur/kx/SparkUtil.py --jars /inspur/kx/mysql-connector-java-8.0.30.jar /inspur/kx/ods_yscjq/whole_script_rdbms_ods.py")

endTime = time.time()
print("------数据加工完成---------")
print("startTime",startTime,"--->endTime:",endTime)
print('总共花费时间: {} hours'.format((endTime-startTime)/3600))
